---
import { Code } from '@astrojs/starlight/components';

const code = `
BlocListener<BlocA, BlocAState>(
  listener: (context, state) {
    // do stuff here based on BlocA's state
  },
  child: const SizedBox(),
);
`;
---

<Code code={code} lang="dart" />
